WPML\Core\Twig\Parser B

Total Complexity 82
Dependencies 21
Dependents 4
Total lines 325
Lines of code 245
Logical lines of code 144
Comment lines 30
Methods 32
Properties 15

Methods 32

Method Rating Maintainability Complexity Lines of code
subparse()
B
39 17 58
filterBodyNodes()
A
50 14 23
parse()
A
42 11 48
getImportedSymbol()
S
59 6 14
isReservedMacroName()
S
59 5 13
peekBlockStack()
S
77 2 3
setMacro()
S
68 2 6
addNodeVisitor()
S
74 1 4
embedTemplate()
S
75 1 4
getCurrentToken()
S
81 1 3
getStream()
S
82 1 3
setParent()
S
81 1 3
getParent()
S
82 1 3
getExpressionParser()
S
82 1 3
popLocalScope()
S
80 1 3
pushLocalScope()
S
79 1 3
isMainScope()
S
79 1 3
getVarName()
S
76 1 3
addImportedSymbol()
S
77 1 3
hasTraits()
S
79 1 3
getBlockStack()
S
82 1 3
addTrait()
S
80 1 3
getFilename()
S
74 1 4
getEnvironment()
S
74 1 4
hasMacro()
S
79 1 3
setBlock()
S
76 1 3
getBlock()
S
80 1 3
hasBlock()
S
79 1 3
pushBlockStack()
S
80 1 3
popBlockStack()
S
80 1 3
addHandler()
S
73 1 4
__construct()
S
81 1 3